<me:UIGSDAT x:Class="WPFExcelReport.TGS03"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:GM="clr-namespace:WPFExcelReport;assembly=TGSMATK"  
                    xmlns:SD="clr-namespace:WPFExcelReport;assembly=TSDDAT"  
                     xmlns:Localization="clr-namespace:Localization;assembly=Localization" 
                    x:Name="TV"
                    Loaded="Window_Loaded"
     >
    <me:UIGSDAT.Resources>
        <CollectionViewSource  x:Key="vwMaster"  />
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby10000  x:Key="dw"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:NOTBoolToVisibilityConverter  x:Key="not"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </me:UIGSDAT.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
            <WrapPanel>
                <Grid Margin="10,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock   Grid.Column="0" Margin="20,0,0,0" Text="{Binding Source={Localization:Translate Word=纱线规格:}}"></TextBlock>
                    <TextBlock Grid.Column="1"    Text="{Binding GSART}" Width="Auto"   />
                </Grid>
                <TextBlock   Text="{Binding Source={Localization:Translate Word=供应类型:}}" Margin="20,0,0,20"></TextBlock>
                <SD:K9200 IsEdit="{Binding IsEdit,ElementName=TV}"
                         KEY="{Binding FERTKZ,ElementName=TV}"
                         ORDERNUM="{Binding FERTKZ,ElementName=TV}"
                         />
                <TextBlock   Text="{Binding Source={Localization:Translate Word=纱支类型:}}" Margin="20,0,0,20"></TextBlock>
                <SD:K0012 IsEdit="{Binding IsEdit,ElementName=TV}"
                         KEY="{Binding COUNTTYP,ElementName=TV}"
                         ORDERNUM="{Binding COUNTTYP,ElementName=TV}"
                         />
                <Grid Margin="10,0,0,0" Visibility="Hidden">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                        <ColumnDefinition Width="Auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBlock   Grid.Column="0" Margin="20,0,0,0" Text="{Binding Source={Localization:Translate Word=var:}}"></TextBlock>
                    <TextBlock Grid.Column="1"    Text="{Binding GSVAR}" Width="60"   />
                </Grid>
                <Grid Margin="10,0,0,0">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    <TextBlock  Grid.Column="0" Margin="20,0,0,0" Text="{Binding Source={Localization:Translate Word=描述:}}"/>
                    <ex:TXT72 Grid.Column="1"    Text="{Binding GSHANDLNR, Converter={StaticResource ResourceKey=gb2312}}" 
                               IsReadOnly="{Binding IsEdit, Converter={StaticResource not}}"
                              MaxLength="60" CharacterCasing="Upper"  
                              Width="200" />
                </Grid>
            </WrapPanel>
            <WrapPanel>
                
                <TextBlock Margin="20,0,0,0"  Text="{Binding Source={Localization:Translate Word=纤度:}}"></TextBlock>
                <ex:NumericBox    Margin="20,0,0,0" 
                    Text="{Binding GSGARNNR,Converter={StaticResource ResourceKey=dw}}" Width="60" 
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"/>
                <TextBlock   Text="{Binding Source={Localization:Translate Word=/}}"></TextBlock>
                <ex:NumericBox  Margin="20,0,0,0"    Text="{Binding GSFACH}" Width="60"
                                     IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}"/>
                <TextBlock   Text="{Binding Source={Localization:Translate Word=计算支数:}}"></TextBlock>
                <ex:NumericBox   Margin="20,0,0,0"   Text="{Binding GSRECHNR,Converter={StaticResource ResourceKey=dw}}" Width="60"  
                                    IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}" DecimalPlaces="1" /> 
            </WrapPanel>
            <WrapPanel>
                <TextBlock   Text="{Binding Source={Localization:Translate Word=标准价格:}}"></TextBlock>
                <ex:NumericBox   Margin="20,0,0,0"   Text="{Binding GSBWPR1,Converter={StaticResource ResourceKey=dw}}" Width="60"  
                                    IsReadOnly="{Binding IsEdit,Converter={StaticResource not}}" DecimalPlaces="1" />
            </WrapPanel>
        </StackPanel>
    </Grid>
</me:UIGSDAT>
